import modelExtend from '../../../utils/modelExtend';
import HttpModel from '../../../models/http';
import {
    doPostToObj, doPostParam
} from '@/services/http'
let deviceWarningRules = {
    namespace: 'deviceWarningRules',
    state: {

    },
    effects: {
        *initData({ payload, callback }, { call, put }) {
            yield put({
                type: 'req',
                payload: {
                    pageData: {
                        rows: [],
                        list: [],
                        pagination: {},
                    },
                    data: {},
                },
            });
        },
    },
    reducers: {
        save(state, action) {
            return {
                ...state,
                ...action.payload,
            };
        },
    },
};
deviceWarningRules = modelExtend(HttpModel, deviceWarningRules);
export default deviceWarningRules;